package com.ejzblog.mall.model.req.sms;

import com.ejzblog.mall.validation.group.CreateAction;
import com.ejzblog.mall.validation.group.OneReqAction;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * Description：
 * </p>
 *
 * @author Mango
 * @version v1.0.0
 * @ProjectName: community-mall-master
 * @Package: com.ejzblog.mall.model.req.reg
 * @date 2021-07-14 14:50
 * @see com.ejzblog.mall.model.req.reg
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
public class SendCodeReq {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = {OneReqAction.class, CreateAction.class})
    private String phone;

    /**
     * 验证码类型
     */
    @NotBlank(message = "验证码类型不能为空", groups = {OneReqAction.class, CreateAction.class})
    private String type;

}
